MkSpeechBubble
:fa-brands-github: Show source on GitHub
Node for showing a css-based speech bubble.¶
Bases: MkContainer
| Name | Children | Inherits |
|---|---|---|
| MkContainer mknodes.basenodes.mkcontainer A node containing other MkNodes. |
graph TD
1965962441["mkspeechbubble.MkSpeechBubble"]
835538629["mkcontainer.MkContainer"]
1956333208["mkcontainer.MkContainerBase"]
1359323199["mknode.MkNode"]
2751680898["builtins.object"]
835538629 --> 1965962441
1956333208 --> 835538629
1359323199 --> 1956333208
2751680898 --> 1359323199
/home/runner/work/mknodes/mknodes/src/mknodes/basenodes/mkspeechbubble/metadata.toml
[metadata]
icon = "mdi:chat"
name = "MkSpeechBubble"
[[resources.css]]
filename = "speechbubble.css"
[examples.regular]
title = "Regular"
jinja = """
{{ "some text" | MkSpeechBubble }}
"""
[examples.no_arrow]
title = "No arrow"
jinja = """
{{ "some text" | MkSpeechBubble(arrow=None) }}
"""
[output.markdown]
template = """
<div class="speech{{ node.arrow | add(prefix=' ') }}" markdown="1">
{{node.get_items() | join(node.block_separator) }}
</div>
"""
Page info
Code for this page
Resources
Resources(css=[],
markdown_extensions={'admonition': {},
'pymdownx.details': {},
'pymdownx.highlight': {'anchor_linenums': True,
'line_spans': '__span',
'pygments_lang_class': True},
'pymdownx.superfences': {'custom_fences': [{'class': 'mermaid',
'format': <function fence_code_format at 0x785e0f644250>,
'name': 'mermaid'}]},
'pymdownx.tabbed': {},
'tables': {}},
plugins=[Plugin('mkdocstrings')],
js=[],
assets=[Asset('speechbubble_10d5a72.css')],
packages=[])